package com.fysports.web.event;

import com.jfinal.log.Log;
import com.jfinal.plugin.IPlugin;


/**
 * Class title:  事件总线Plugin     <br/>
 * Describe: 基于guava eventbus v19.0 <br/>
 * Created by konbluesky           <br/>
 * Date : 15/12/29 下午7:21       <br/>
 * Project : weixin    <br/>
 */
public class EventPlugin implements IPlugin {
    private static Log logger = Log.getLog(EventPlugin.class);


    @Override public boolean start() {
        /*默认使用阻塞bus*/
        EventKit.init(false);
        return true;
    }

    @Override public boolean stop() {
        EventKit.clean();
        return true;
    }
}
